<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>

</head>

<body>
<div th:replace="common/top">

</div>

<div id="Content">
    <div id="BackLink">
        <a href="/catalog/viewmain">Return to Main Menu</a>
    </div>

    <div id="Catalog">
        <table>
            <tr>
                <td th:text="${product.description}"></td>
            </tr>
            <tr th:each="item:${itemList}">
                <td th:text="${item.itemId}"></td>
                <td th:text="${item.attribute1}"></td>
                <td th:text="${item.attribute2}"></td>
                <td th:text="${item.attribute3}"></td>
                <td th:text="${item.attribute4}"></td>
                <td th:text="${item.attribute5}"></td>
                <td th:text="${product.name}"></td>
            </tr>
            <tr>
                <td th:text="${product.name}"></td>
            </tr>
            <tr>
                <td th:if="${item.quantity} le '0' " th:text="Back ordered.">
                </td>
                <td th:if="${item.quantity } me '0'" th:text="${item.quantity} in stock.">
                </td>
            </tr>
            <tr>
                <td th:text="${item.listPrice}"></td>
            </tr>

            <tr>
                <td>
                    <a class="Button" href="addItemToCart?workingItemId=${item.itemId}">Add to Cart</a>
                </td>
            </tr>
        </table>
    </div>
</div>

<div th:replace="common/bottom">

</div>

</div>
</body>
</html>